package com.xqboss.apps.vo.punch;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * @author Trent
 * @date 2023/8/15
 */
@Data
public class PunchRuleVo {
    private static final long serialVersionUID = 1L;

    /**
     * 钱包ID
     */
    @ApiModelProperty("钱包ID")
    private Long id;

    /**
     * 规则名称
     */
    @ApiModelProperty("规则名称")
    private String name;

    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty("结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    private LocalTime endTime;
    /**
     * 打卡次数
     */
    @ApiModelProperty("打卡次数")
    private Integer punchCount;
    /**
     * 打卡间隔
     */
    @ApiModelProperty("打卡间隔，单位秒")
    private Integer intervalTime;

    @ApiModelProperty("上下架状态")
    private Boolean saleable;

    @ApiModelProperty("排序")
    private int sort;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

}
